<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WidgetContainer.ascx.cs" Inherits="TestWidget.WidgetContainer" %>
<%@ Register Assembly="System.Web.Extensions" Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Panel ID="Widget" CssClass="widget" runat="server" onmouseover="this.className='widget widget_hover'" onmouseout="this.className='widget'">
    <asp:Panel id="WidgetHeader" CssClass="widget_header" runat="server">
        <asp:UpdatePanel ID="UpdatePanelHeader" runat="server" UpdateMode="Conditional">    
                <ContentTemplate>
                        <table class="widget_header_table" cellspacing="0" cellpadding="0">
                        <tbody>
                        <tr>
                        <td class="widget_title">
                        <asp:Literal ID = "liTitle" runat="server" />
                        </td>
                        <td class="widget_edit"><asp:LinkButton ID="EditWidget" runat="Server" Text="edit" OnClick="EditWidget_Click" /><asp:LinkButton ID="CancelEditWidget" runat="Server" Text="close edit" OnClick="EditWidget_Click" Visible="false" /></td>
                        <td class="widget_button"><asp:LinkButton ID="CollapseWidget" runat="Server" Text="" OnClick="CollapseWidget_Click" CssClass="widget_min widget_box" /><asp:LinkButton ID="ExpandWidget" runat="Server" Text="" CssClass="widget_max widget_box" OnClick="ExpandWidget_Click" /></td>
                        <td class="widget_button"><asp:LinkButton ID="CloseWidget" runat="Server" Text="" CssClass="widget_close widget_box" OnClick="CloseWidget_Click" /></td>
                        </tr>
                        </tbody>
                        </table>        
                </ContentTemplate>    
        </asp:UpdatePanel>
    </asp:Panel>
    <asp:UpdateProgress ID="UpdateProgress1" DisplayAfter="10" runat="server" AssociatedUpdatePanelID="UpdatePanelHeader">
        <ProgressTemplate>
            Working...
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanelBody" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:Panel ID="PanelBody" runat="server">
            </asp:Panel>
        </ContentTemplate>

    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgressBody" DisplayAfter="10" runat="server" AssociatedUpdatePanelID="UpdatePanelBody">
        <ProgressTemplate>
            Working...
        </ProgressTemplate>
    </asp:UpdateProgress>
</asp:Panel>